import Opt from '@/components/dt/info/Opt.js'

class Column extends Opt {

  constructor() {
    super()
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [{
      type: 'index',
      title: '序号',
      minWidth: 50,
    }, {
      field: 'orgName',
      title: '所属组织',
      minWidth: 160
    }, {
      field: 'housesName',
      title: '案场名称',
      minWidth: 180
    }, {
      field: 'headerType',
      title: '在销激励类型',
      minWidth: 150,
      cell: {
        text: {
          type: 'dict',
          key: 'bonusHeaderTypeTwo'
        }
      }
    }, {
      field: 'bonusMonth',
      title: '发放月份',
      minWidth: 120
    }, {
      field: 'productName',
      title: '产品名称',
      minWidth: 160
    }, {
      field: 'roomName',
      title: '房源名称',
      minWidth: 160
    }, {
      field: 'workNo',
      title: '工号',
      minWidth: 120
    }, {
      field: 'userName',
      title: '姓名',
      minWidth: 120
    }, {
      field: 'postName',
      title: '岗位',
      minWidth: 120
    }, {
      field: 'bonusMoney',
      title: '应发激励奖金(元)',
      minWidth: 150,
      cell: {
        text: {
          type: 'number'
        }
      }
    }]
  }

}

export default Column
